package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/rest"
	"github.com/zeromicro/go-zero/zrpc"
)

type Config struct {
	rest.RestConf

	Auth struct {
		AccessSecret string
		AccessExpire int64
	}

	Query struct {
		CursorSplitter string
		DefaultAmount  int
		MaxAmount      int
	}

	CacheRedis cache.CacheConf

	CacheRedisAddress string

	AttachmentRpc zrpc.RpcClientConf
	BackendRpc    zrpc.RpcClientConf
	BlogRpc       zrpc.RpcClientConf
	ForumRpc      zrpc.RpcClientConf
	LayoutRpc     zrpc.RpcClientConf
	SettingRpc    zrpc.RpcClientConf
	UserRpc       zrpc.RpcClientConf
}
